const rootData = {
  state: {
    // 综合业务选中卡号
    globalCardNo: '',
    // 是否离线
    offLineStatus: true,
    // 个人验密标志
    personalFlag: false,
    // 四要素标志
    siyaosuFlag: false,
    // 个人业务是否选中卡号
    personalCheckFlag: false,
    // 公司验密标志
    companyFlag: false,
    // 公司业务是否选中卡号
    companyCheckFlag: false,
    // 挂失验密标志
    lossFlag: false,
    // 挂失业务是否选中卡号
    lossCheckFlag: false
  },
  getters: {
    GET_GLOBALCARDNO: (state) => {
      return state.globalCardNo
    },
    GET_OFFLINESTATUS: (state) => {
      return state.offLineStatus
    },
    GET_PERSONALFLAG: (state) => {
      return state.personalFlag
    },
    GET_SIYAOSUFLAG: (state) => {
      return state.siyaosuFlag
    },
    GET_PERSONALCHECKFLAG: (state) => {
      return state.personalCheckFlag
    },
    GET_COMPANYFLAG: (state) => {
      return state.companyFlag
    },
    GET_COMPANYCHECKFLAG: (state) => {
      return state.companyCheckFlag
    },
    GET_LOSSFLAG: (state) => {
      return state.lossFlag
    },
    GET_LOSSCHECKFLAG: (state) => {
      return state.lossCheckFlag
    }
  },
  mutations: {
    SET_GLOBALCARDNO: (state, data) => {
      state.globalCardNo = data
    },
    SET_OFFLINESTATUS: (state, data) => {
      state.offLineStatus = data
    },
    SET_PERSONALFLAG: (state, data) => {
      state.personalFlag = data
    },
    SET_SIYAOSUFLAG: (state, data) => {
      state.siyaosuFlag = data
    },
    SET_PERSONALCHECKFLAG: (state, data) => {
      state.personalCheckFlag = data
    },
    SET_COMPANYFLAG: (state, data) => {
      state.companyFlag = data
    },
    SET_COMPANYCHECKFLAG: (state, data) => {
      state.companyCheckFlag = data
    },
    SET_LOSSFLAG: (state, data) => {
      state.lossFlag = data
    },
    SET_LOSSCHECKFLAG: (state, data) => {
      state.lossCheckFlag = data
    }
  }
}
export default rootData
